class Staff < ActiveRecord::Base
	belongs_to :staff_role
	has_many :appointments
	has_and_belongs_to_many :contacts
	def full_name
    	"#{first_name} #{last_name}"
	end
	
	validates :staff_role_id, :first_name, :last_name, :dob, :mobile, :email , presence: true
	
	
end
